import request from "@/utils/request";
import defaultSettings from "@/settings";

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsReexchange/HvpsBepsCreditReexChangeApprove/search`,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsReexchange/HvpsBepsCreditReexChangeApprove/search`,
  delUrl: `${defaultSettings.ctx.cnapsApp} `,
};

//往账大小额复核查询明细
export function detail(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsReexchange/HvpsBepsCreditReexChangeApprove/detail`,
    method: "get",
    params,
  });
}

export function approve(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsReexchange/HvpsBepsCreditReexChangeApprove/approve`,
    method: "post",
    data,
  });
}

export function reject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsReexchange/HvpsBepsCreditReexChangeApprove/reject`,
    method: "post",
    data,
  });
}
